﻿<?xml version="1.0" encoding="utf-8"?>
<html>
    <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http://www.w3.org/1999/xlink">
        <script type="text/javascript">
        function onLoad()
        {
            clickLink(document.getElementById("link"));
            
            if (window.testRunner)
                testRunner.dumpAsText();
        }

        function clickLink(link)
        {
            var event = document.createEvent("MouseEvents");
            event.initMouseEvent("click", true, true, window,
                0, 0, 0, 0, 0,
                false, false, false, false,
                0, null);
            link.dispatchEvent(event);
        }
        </script>
        <a id="link" xlink:href="#">
            <text x="50" y="50">PASS if no crash</text>
        </a>
    </svg>
</html>
